import Vue from 'vue'
import app from './app.vue'
import VueRouter from "vue-router"
import RouterTest from './components/FirstComponent.vue'
import vuex from 'vuex'
import myStore from "./store"

let bodydiv = window.document.createElement("div");
bodydiv.id="app"
window.document.body.appendChild(bodydiv);

Vue.use(vuex);
Vue.use(VueRouter);

const router = new VueRouter({
    mode:"history",
    routes:[
        {path:'/',component:RouterTest},
    ]
});
let v = new Vue({
    router,
    store:myStore(),
    template:`
    <div>123<router-view></router-view></div>
    `
}).$mount("#app");